import type { Directive, App } from 'vue';

const foucsDirective: Directive = {
  mounted(el) {
    el.focus();
  },
};

export function setupFoucsDirective(app: App) {
  app.directive('focus', foucsDirective);
}
